﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.Title = "导入";

}


<main class="lyear-layout-content">
    <div style="margin:10px;" id="ImportFileControl">
        <form id="form1" action="/Interview/UploadFiles" method="post" enctype="multipart/form-data">
            <div>
                <span class="">请选择要提交文件对更新:</span>
                <br />
                <br />
                <input id="fileupload" type="file" style="display:inline" name="multiFiles" accept=".csv,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document" />
                <span>
                    <button id="btn" type="button" onclick="DisableHtml('form1')" class="btn">上传</button>
                </span>
                <input type="hidden" name="type" value="1" />
            </div>
        </form>

        <div style="margin-top:15px;">
            <span>解释：上传的价格，会同步更新。</span>
        </div>
    </div>
    <br />
</main>
    <script>
    Result = "@ViewBag.Result";
    Message = "@(ViewBag.Message)";



    function DisableHtml(fId) {
        $(".btn").attr("disabled", true);
        $("#" + fId).submit();
        return true;
    };
    </script>
